package openfl.display3D.textures;

import massive.munit.Assert;
import openfl.display.Stage3DTest;
import openfl.display3D.textures.Texture;

class TextureBaseTest
{
	@Test public function dispose()
	{
		// TODO: Confirm functionality
		// TODO: Isolate so integration is not needed

		#if integration
		var context3D = Stage3DTest.__getContext3D();

		if (context3D != null)
		{
			var texture = context3D.createTexture(1, 1, BGRA, false);
			var exists = texture.dispose;

			Assert.isNotNull(exists);
		}
		#end
	}
}
